/**
 * Created with IntelliJ IDEA.
 * Description: 无论从前从后查找，当前位置不算查找数值
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2023-06-02  16:41
 */
public class Test3 {
    public static void main(String[] args) {
        String str = new String("abcbdef");
        int a = str.lastIndexOf('b',2);
        System.out.println(a);
    }
}
